xenoprof: add support for Core i7 and Atom.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Sep 2009 09:02:15 +0000 (10:02 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 15 Sep 2009 09:02:15 +0000 (10:02 +0100)
Signed-off-by: Yang Zhang <yang.zhang@intel.com>
Signed-off-by: Yang Xiaowei <xiaowei.yang@intel.com>
xen/arch/x86/oprofile/nmi_int.c

index 89040890d688d68b5c3e55e9541a51e5fff8b01e..7ab1573364c6c5f8d502a5e71bb8c100b655f5b7 100644 (file)
@@ -357,24 +357,30 @@ static int __init ppro_init(char ** cpu_type)
                *cpu_type = "i386/pii";
                break;
        case 6 ... 8:
+       case 10 ... 11:
                *cpu_type = "i386/piii";
                break;
        case 9:
+       case 13:
                *cpu_type = "i386/p6_mobile";
                break;
-       case 10 ... 13:
-               *cpu_type = "i386/p6";
-               break;
        case 14:
                *cpu_type = "i386/core";
                break;
        case 15:
        case 23:
-       case 26:
        case 29:
                *cpu_type = "i386/core_2";
                ppro_has_global_ctrl = 1;
                break;
+       case 26:
+               *cpu_type = "i386/core_i7";
+               ppro_has_global_ctrl = 1;
+               break;
+       case 28:
+               *cpu_type = "i386/atom";
+               ppro_has_global_ctrl = 1;
+               break;
        default:
                /* Unknown */
                printk("xenoprof: Initialization failed. "